package homework_05;

public class home_01 {
    public static int jiecheng(int n){
        int sum=1;
        for (int i=1;i<=n;i++){
            sum=sum*i;
        }
        return sum;
    }

    public static void main(String[] args) {
        int result=jiecheng(5);
        System.out.println(result);
    }
}
